package com.lgh.springframework.beans.factory.support;

import com.lgh.springframework.beans.BeansException;
import com.lgh.springframework.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * ******************************************************
 *
 * @author liugh9
 * @version 1.0
 * @classname InstantiationStrategy
 * @description
 * @date 2023/02/22 20:45
 * <p>
 * ******************************************************
 */
public interface InstantiationStrategy {

    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor ctor, Object[] args) throws BeansException;


}
